package com.ourteam.product.service;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
//import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 *
 */
//@EnableEurekaClient
@SpringBootApplication(scanBasePackages={"net","com.depthsdata","com.ourteam"})
@ImportResource(locations = { "classpath:applicationContext-api.xml" })
@RestController
public class OurteamProductApp extends SpringBootServletInitializer{
	public static void main(String[] args) {
		SpringApplication.run(OurteamProductApp.class, args);
	}
	
	@Override//为了打包springboot项目
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}
